"This is here to make use of the displaying method that understands
transformation defined in the Path class. Shan March 23, 1989"
"If all the displayObject behave this way, Go fix the Path class."
super
displayOn: aDisplayMedium
transformation: displayTransformation
clippingBox: clipRectangle
rule: Form over
mask: Form black! !
DisplayObject subclass: #MDisplayObject
instanceVariableNames: 'contents insideColor borderWidth borderColor form boundingBox '
classVariableNames: ''
poolDictionaries: ''
category: 'DispObj-Shan'!
MDisplayObject comment:
'There are two kinds of bahavior for DispObj. When the boundingBox is nil, a DispObj will not scale the contents when outputting. When the boundingBox is not nil, it will scale the output according to the differrence of the ''unclippedDispBox'' from the mode and the boundingBox.
Stretchable modes like LineMode should make the boundingBox notNil. Shan May 12, 1989'!
!MDisplayObject methodsFor: 'transforming'!
translateBy: aPoint
"Translate all objects in the contents. Special treatment is needed
because some DisplayObejct returns a new instance instead of
changing the old instance when issued a translateBy: message.